<div class="infofiles block" data-title="资料上传" ms-controller="infofiles">
    <ms-tab ms-widget="{list: @tabList.list, active: @tabList.active}"></ms-tab>
    <form :attr="{action:@actionUrl}" method="post" enctype="multipart/form-data" id="uploadForm" class="uploaded">
        <table width="100%" class="uploadTb">
            <thead>
                <tr>
                    <th width="250">文件类型</th>
                    <th>状态</th>
                    <th width="300">备注</th>
                </tr>
            </thead>
            <tbody>
                <tr :for="(index, el) in @uploadList">
                    <td class="uploadFileText">{{@el.text}}</td>
                    <td >
                        <div :visible="@actionStatus=='show' || @el.status=='PRE_APPROVAL' || @el.status=='APPROVAL'">
                            <span class="showy" :visible="@el.status=='EMPTY'"><i class="unpassIcon"></i> 未上传</span>
                            <span class="primary" :visible="@el.status=='APPROVAL'"><i class="passIcon"></i> 已成功上传</span>
                            <span :visible="@el.status=='PRE_APPROVAL'">审核中</span>
                            <span class="showy" :visible="@el.status=='CANCEL'"><i class="unpassIcon"></i> 审核未通过</span>
                        </div>
                        <div class="uploadItem" 
                            :if="@el.status=='EMPTY' || @el.status=='CANCEL'"
                            :visible="@actionStatus=='upload' " 
                            :for="(fileIndex, uploadFile) in @el.uploadFiles"
                            :attr="{'data-name': @uploadFile.paramName}" >
                            <span class="uploadImgBox" >
                                <img src="../../../images/uploadLogo.png" class="uploadImg" >
                            </span>
                            <span class="upload-btn" :attr="{'data-name': @uploadFile.paramName}">
                                {{@uploadFile.text}}
                                <input type="file" :attr="{'name': @uploadFile.paramName}" class="uploadFileBtn" accept="image/*" >
                            </span>
                        </div>
                        
                    </td>
                    <td >
                        <span :visible="@el.status=='PRE_APPROVAL'">谢谢，请耐心等待，我们将尽快的完成阁下数据的审核</span>
                        <span class="showy" :visible="@el.status=='CANCEL'">{{@el.reason}}</span>
                    </td>
                </tr>
                <tr>
                    <td >&nbsp;</td>
                    <td >
                        <button class="m-btn mleft10" 
                            :visible="@uploadList.length>0"
                            :class="{disabled:@loading}"
                            :attr="{disabled:@loading}"
                            :click="@uploadFn | prevent">上传</button>
                        <button class="m-btn-default mleft10"
                                :visible="@actionStatus=='upload'"
                                :click="@actionStatus='show'">取消</button>
                    </td>
                    <td >&nbsp;</td>
            </tbody>
        </table>
    </form>
    <div class="tips">
        <p>
            <i class="icon"></i>
            <strong class="primary">温馨提示：</strong>
        </p>
        <p>为保障账户安全，请阁下于开户后尽快提交以下档，以便完成整个审批程式：</p>
        <p><strong>身份证明：</strong></p>
        <p>1、您所上传的图片格式只限于JPG、GIF、BMP和PNG等，不可上传其它格式文件。</p>
        <p>2、单张图片不能超过5M。</p>
        <p>银行证明：</p>
        <p>1、您所上传的图片格式只限于JPG、GIF、BMP和PNG等，不可上传其它格式文件。</p>
        <p>2、单张图片不能超过5M。</p>
    </div>
    
</div>